package edu.suda.xsap.dto.convert;
import edu.suda.xsap.dto.MemCardBindDto;
import edu.suda.xsap.entity.MemCardBind;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;
@Mapper(componentModel = "spring")
public interface MemCardBindConvert {

//    @Mapping(source="mid", target = "memberId")
    @Mapping(source="memberCardName", target = "memCardName")
    @Mapping(source="cardId", target = "memCardId")
    MemCardBindDto toDto(MemCardBind menCardBind);

    List<MemCardBindDto> toDtoList(List<MemCardBind> menCardBinds);
}
